<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:p="http://primefaces.org/ui">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <ui:composition>
            <h:form id="formAutocomplete" rendered="#{user_autoCompleteFind.acceso()}"  >
                <p:autoComplete id="buscar" styleClass="searchBox" size="30" 
                                value="#{user_autoCompleteFind.selected}"
                                completeMethod="#{user_autoCompleteFind.autoComplete}"
                                var="p" maxResults="10"
                                itemLabel=""
                                itemValue="#{p}" 
                                converter="user_autoCompleteFind"
                                >
                    <p:column>
                        <h:panelGroup layout="block" class="acTitle">#{p.loginBeans.nombre}</h:panelGroup>
                        <div> Apellido: #{p.loginBeans.apellido}</div>
                        <div>Usuario: #{p.loginBeans.usuario}</div>
                    </p:column>
                    <p:ajax event="itemSelect"  update=":title :contentRefresher"/>
                </p:autoComplete>

                <p:watermark for="buscar" value="#{autocompleteLabel.watermark}"/>
                
            </h:form>
        </ui:composition>
    </body>
</html>
